#include"head.h"
#include"mouse.h"
#include"picture.h"
#include "start.h"
void selectmode()
{
	mscursoff();
	showbmp("c:\\test\\pic\\selectm.bmp",0,0,0,0,640,480);
	mscurson();
	while(1)
	{
		mouseread();
		if(mousex>50&&mousex<250&&mousey>100&&mousey<300&&mousekey==1)
		{
	 		game(1,1);
	 		showbmp("c:\\test\\pic\\selectm.bmp",0,0,0,0,640,480);
		}
		if(mousex>350&&mousex<500&&mousey>100&&mousey<300&&mousekey==1)
		{

   			game(0,2);
   			showbmp("c:\\test\\pic\\selectm.bmp",0,0,0,0,640,480);
		}
		if(mousex>200&&mousex<400&&mousey>350&&mousey<450&&mousekey==1)
		{
			mscursoff();
			showbmp("c:\\test\\pic\\startpic.bmp",0,0,0,0,640,480);
			mscurson();
			delay(10);
			break;
		}
	}

}
